Skip to content

chore(AIAgents): update collaboration guidance - #1418

Merged
ArgoZhang merged 1 commit into
masterfrom
chore-aiagent
Dec 5, 2026
Merged

ArgoZhang merged 1 commit into
masterfrom
chore-aiagent

Conversation

@ArgoZhang

@ArgoZhang ArgoZhang commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Link issues

fixes #1417

Summary By Copilot

  • 精简 AGENTS.md,更新组件规范、提交信息模板和 PR 指南。
  • 补充部分组件工程的依赖源码链接和依赖变更约束。
  • 删除根目录 global.json。

Regression?

  • Yes
  • No

现有推送及 PR 工作流仍使用 global-json-file: global.json,删除该文件可能导致 SDK 安装步骤失败;合并前需要处理。

Risk

  • High
  • Medium
  • Low

除文档变更外,删除 global.json 会影响 SDK 选择,并可能阻断现有 CI。

Verification

  • Manual (required)

  • Automated

  • git diff --check origin/master...HEAD:通过。

  • 按 bb-pr skill 的限制未运行构建、测试或手动运行验证;CI 尚待验证。

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

更新仓库协作指南与组件维护文档,并移除根目录的 .NET SDK 配置文件。

Enhancements:

  • 精简并重组根级 AI 协作说明,明确测试、编码、依赖和 JavaScript 验证约束。
  • 扩充组件规范、自检清单、依赖源码参考及提交与 PR 协作指南。
  • 更新提交信息模板,补充提交类型及其用途说明。

Build:

  • 删除仓库根目录的 global.json,影响 SDK 版本选择配置。

Documentation:

  • 更新 AGENTS.md 和 docs/agents 下的组件、依赖、提交信息及 PR 指南文档。

@sourcery-ai

sourcery-ai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

删除根目录的 global.json,但现有推送及 PR 工作流仍引用它来选择 .NET SDK,需核对并处理这一配置冲突。

  • global.json (deleted)

Documentation

精简根级协作说明并调整编码、测试和参考文档指引;结合组件自检规范一并核对这些规则是否一致、可执行。

  • AGENTS.md L5-31
  • docs/agents/component-checklist.md L1-43

更新依赖说明,补充部分组件的上游依赖链接及依赖变更约束。

  • docs/agents/dependencies.md L1-22

更新提交信息模板中的提交类型说明与格式,核对其是否符合仓库提交惯例。

  • docs/agents/commit_msg_template.md L1-19

调整分支、提交和 Issue / PR 操作指引,核对其与仓库 PR 模板及技能流程是否一致。

  • docs/agents/pr-guide.md L3-20

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@bb-auto bb-auto Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved by bb-auto

@sourcery-ai

sourcery-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 5096c10

#1417 chore(AIAgents): update collaboration guidance · 5 of 6 met

# Requirement Status Notes
1 精简根 AGENTS.md ✅ Met 根级说明已精简并重新组织。
2 更新组件自检指南 ✅ Met 组件规范与自检清单已扩充。
3 更新提交及 PR 指南 ✅ Met 提交与 PR 指南已更新。
4 补充部分组件的依赖源码链接 ✅ Met 依赖说明新增了多个组件对应的上游源码链接。
5 调整提交信息模板 ✅ Met 模板已改为列出提交格式和 type 说明。
6 移除 global.json 并处理 SDK 配置及 CI 风险 🟡 Partly met global.json 已删除,但现有工作流仍通过 global-json-file 引用它,未见替代的 SDK 配置或 CI 风险处理。

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 5 issues


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread AGENTS.md
## 项目与命令

- 解决方案为 [BootstrapBlazor.Extensions.slnx](BootstrapBlazor.Extensions.slnx)。`src/components/` 按包组织 Razor 组件和服务,`src/extensions/` 包含数据访问、OPC、SignalR 等扩展,`src/middleware/` 包含服务端中间件。`test/` 按项目组织测试,例如 `UnitTestEditor`、`UnitTestHoliday` 和 `UnitTestSvgIcon`。
- 从仓库根目录运行命令。CI 通过 `actions/setup-dotnet` 读取 `global.json`,按该文件选择 .NET 11 SDK。源码项目默认面向 `net6.0` 至 `net11.0`,测试和工具使用 `net11.0`。查看具体项目的引用及条件编译时,以项目文件和导入的配置为准。[SDK 配置](global.json) · [源码框架](src/Frameworks.props) · [测试配置](test/Directory.Build.props) · [单目标框架](Framework.props) · [工具配置](tools/Directory.Build.props)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Critical · GitHub workflows fail before running

When the push, PR, or release workflow runs after global.json is deleted, actions/setup-dotnet still receives global.json as global-json-file, so SDK setup fails before the workflows can build, test, or publish.

Provide a replacement SDK selection or update the affected workflows so actions/setup-dotnet does not read the deleted file.

From #1417:

移除 global.json 并处理 SDK 配置及 CI 风险


- 样式基于 Bootstrap 5,优先使用 CSS Variables,兼容现有主题。
- 所有用户可见文本必须使用 `IStringLocalizer`,禁止硬编码中文/英文 UI 文本。
- 增删资源键时同步检查 `src/BootstrapBlazor/Locales/` 和 `localization/`,保留其他组件仍使用的资源。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Component translations stay unsynchronized

When a contributor adds, removes, or changes a localized resource key in a component package, the checklist points contributors to src/BootstrapBlazor/Locales/ and localization/, not the component-local Locales directories, so the package resources remain unsynchronized and localized UI text is missing or falls back.

Direct contributors to synchronize the component-local Locales resources instead of the specified paths.

- [ ] 不引入新依赖;必要的依赖变更已说明原因。
- [ ] 样式兼容主题,无硬编码 UI 字符串,本地化资源已同步。
- [ ] 文档、示例已更新或确认无需更新。
- [ ] 按根 [AGENTS.md 的测试约定](../../AGENTS.md#测试约定) 完成适用验证,准确记录未执行的检查。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Testing links do not navigate

When a reader follows a testing-guidance link, the #测试约定 fragment no longer matches the root guide's 编码与测试 heading, so the link does not take readers to the testing guidance.

Update the links to use the current #编码与测试 heading fragment.

Also at docs/agents/pr-guide.md:19.


### JavaScript 与 DOM

- 不直接操作 DOM(用 JSInterop)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · DOM 操作被错误禁止

When 贡献者为组件编写需要访问或操作 DOM 的 JavaScript 模块, 组件的 .razor.js 模块需要直接使用浏览器 DOM API;这条规则却要求改用 JSInterop,导致贡献者避开组件现有的互操作模式,无法按规范实现 DOM 交互。

明确规则是 C# 组件不得直接操作 DOM,应通过 JSInterop 调用 JavaScript 模块;模块内可按需使用 DOM API。

Comment thread AGENTS.md
## 编码规范

- **术语**。BootstrapBlazor 组件库简称 BB,BootstrapBlazor 组件简称 BB 组件,BootstrapBlazor.Extensions 简称 BB.Extensions。
- **C#**。遵循 `.editorconfig` 和相邻文件的风格,优先使用文件范围命名空间,添加源文件时沿用文件头。源码启用可空引用类型和隐式 `using`。处理无效输入或已释放状态时可用早期返回,新增异步方法优先用 `Async` 后缀,保留已有公开签名和接口约定。[编辑器配置](.editorconfig) · [共享构建属性](Directory.Build.props)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ Low · Component abbreviation guidance is lost

the updated glossary retains the BB and BB.Extensions abbreviations but drops the prescribed BB 组件 abbreviation, so collaborators no longer have the repository's terminology rule for BootstrapBlazor components.

Restore the BootstrapBlazor 组件简称 BB 组件 definition in the glossary.

From AGENTS.md L17:

BootstrapBlazor 组件简称 BB 组件

@ArgoZhang
ArgoZhang merged commit 2e843e0 into master Dec 5, 2026
2 of 3 checks passed
@ArgoZhang
ArgoZhang deleted the chore-aiagent branch December 5, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(AIAgents): update collaboration guidance

1 participant